package com.web.exiaodao.business.service;

import com.web.exiaodao.business.entity.InsRoomsOrder;
import com.web.webstart.base.exception.BusinessException;
import com.web.webstart.base.service.BaseServiceInterFace;
import com.web.webstart.base.util.result.XaResult;

import java.util.List;

public interface InsRoomsOrderService extends BaseServiceInterFace<InsRoomsOrder>{
    /**
     * 生成酒店的订单信息 按天
     * @param insRoomId  酒店房型id
     * @param days       天数
     * @return
     * @throws BusinessException
     */
    public XaResult<List<InsRoomsOrder>> generateDateByDay(long insRoomId, int days) throws BusinessException;

    /**
     * 生成酒店的订单信息  按天
     * @param insRoomId  酒店房型id
     * @param months       月数
     * @return
     * @throws BusinessException
     */
    public XaResult<List<InsRoomsOrder>> generateDateByMonth(long insRoomId, int months) throws BusinessException;
}
